package job

import (
	"kubernate-server/service"

	"github.com/gin-gonic/gin"
)

type K8sJobRouter struct {
}

func (*K8sJobRouter) InitK8SJobRouter(r *gin.Engine) {
	group := r.Group("/k8s/job")
	group.GET("/jobDetail/:nameSpace/:jobName", service.ApiGroupApp.GetJobDetail)
	group.GET("/getJobList", service.ApiGroupApp.GetJobList)
	group.DELETE("/delJob/:nameSpace/:jobName", service.ApiGroupApp.DeleteJob)
	group.GET("/createJob/:nameSpace/:jobName", service.ApiGroupApp.CreateJob)
	group.GET("/updateJob/:nameSpace/:jobName", service.ApiGroupApp.UpdateJob)
}
